<template>
  <el-breadcrumb separator="/" class="navigation">
    <el-breadcrumb-item v-for="n in nav" :to="{ path: n.routeUrel}" style="font-family: Extra large;font-size: 20px ;">{{n.navName}}</el-breadcrumb-item>
    <!--<el-breadcrumb-item>活动管理</el-breadcrumb-item>
    <el-breadcrumb-item>活动列表</el-breadcrumb-item>
    <el-breadcrumb-item>活动详情</el-breadcrumb-item>-->
  </el-breadcrumb>
</template>
<script>
  export default {
    data(){
      return {
        nav: this.$store.state.nav
      }
    },
    computed: {
      watchNav() {
        return this.$store.state.nav;
      }
    },
    watch:{
      watchNav(val) {
        this.nav = val;
      }
    }
  }
</script>

<style scoped>
  .navigation{
    width: 100%;
    height: 30px;
    padding: 20px;
  }
</style>
